<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>新增用户次月出现次数</title>
<@fm.header />
<script type="text/javascript" src="/resources/js/easyui/datagrid-detailview.js"></script>
<script>
function doSearch(){    
    $('#tt').datagrid('load', {    
        mark: $('#mark').val(),
        startTime: $('#startTime').datetimebox('getValue'),
        endTime: $('#endTime').datetimebox('getValue')
    });
}

$(function(){
    $('#tt').datagrid({
        view: detailview,
        detailFormatter:function(index,row){
            return '<div class="ddv" style="padding:5px 0"></div>';
        },
        onExpandRow: function(index,row){
            var ddv = $(this).datagrid('getRowDetail',index).find('div.ddv');
            ddv.panel({
                border:false,
                cache:false,
                href:'/mark/imsi/count/getNextMonthDetail?mark='+row.mark+'&genertime='+row.genertime,
                onLoad:function(){
                    $('#tt').datagrid('fixDetailRowHeight',index);
                }
            });
            $('#tt').datagrid('fixDetailRowHeight',index);
        }
    });
});
</script>
</head>
<body class="cmp-list-body">
<div id="tb" style="padding:3px">
    <span>Mark:</span>
    <input id="mark" style="line-height:20px;border:1px solid #ccc">
    <span>时间时间:</span>
    <input type="text" class="easyui-datebox" id="startTime" />至
    <input type="text" class="easyui-datebox" id="endTime" />
    
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch();">查询</a> 
</div>
<table id="tt" class="easyui-datagrid" title="新增用户次月出现次数" iconCls="icon-save" 
	url="/mark/imsi/count/nextMonthListJson" toolbar="#tb" rownumbers="true" idField="id"
	singleSelect="true" pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]"> 
    <thead>
        <tr>
            <th width="50%" field="genertime">日期</th>
            <th width="50%" field="mark">Mark</th>
        </tr>
    </thead>   
</table>
</body>
</html>